<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>天院美食网</title>
	<link rel="stylesheet" href="css/main.css" type="text/css"/>
</head>
<body class="main">
<jsp:include page="head.jsp" />

<jsp:include page="menu_search.jsp" />

<div id="divpagecontent">
	<table width="100%" border="0" cellspacing="0">
		<tr>
			<td width="25%">
				<table width="100%" border="0" cellspacing="0"
					   style="margin-top:30px">
					<tr>
						<td class="listtitle">我的帐户</td>
					</tr>
					<tr>
						<td class="listtd"><img src="images/miniicon.gif" width="9"
												height="6" />&nbsp;&nbsp;&nbsp;&nbsp; <a
								href="${pageContext.request.contextPath}/modifyuserinfo.jsp">用户信息修改</a></td>
					</tr>
					<tr>
						<td class="listtd"><img src="images/miniicon.gif" width="9"
												height="6" />&nbsp;&nbsp;&nbsp;&nbsp; <a href="${pageContext.request.contextPath}/findOrderByUserId.action">订单查询</a>
						</td>
					</tr>
					<tr>
						<td class="listtd"><img src="images/miniicon.gif" width="9"
												height="6" />&nbsp;&nbsp;&nbsp;&nbsp; <a href="${pageContext.request.contextPath}/exitUser.action">用戶退出</a>
						</td>
					</tr>
				</table></td>
			<td>
				<div style="text-align:right; margin:5px 10px 5px 0px">
					<a href="${pageContext.request.contextPath}/index.jsp">首页</a>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<a
						href="${pageContext.request.contextPath}/myAccout.action">&nbsp;我的帐户</a>&nbsp;&nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;用户信息修改
				</div>
				<table cellspacing="0" class="infocontent">
					<tr>
						<td>
							<form action="${pageContext.request.contextPath}/updateUser.action" method="post">

								<input type="hidden" name="id" value="${user.id}">	<!--目的是为了表单一提交就传过一个id过去,才知道要改那个用户的信息 -->
								<table width="100%" border="0" cellspacing="2" class="upline">
									<tr>
										<td style="text-align:right; width:20%">用户邮箱：</td>
										<td style="width:40%; padding-left:20px">${user.email}</td>
										<td>&nbsp;</td>
									</tr>
									<tr>
										<td style="text-align:right">用户名：</td>
										<td style="padding-left:20px">${user.username}</td>
										<td>&nbsp;</td>
									</tr>
									<tr>
										<td style="text-align:right">修改密码：</td>
										<td><input type="password" name="password"
												   class="textinput" value="${user.password}" />
										</td>
										<td><font color="#999999">密码设置至少6位，请区分大小写</font>
										</td>
									</tr>
									<tr>
										<td style="text-align:right">重复密码：</td>
										<td><input type="password" class="textinput"  value="${user.password}"/>
										</td>
										<td>&nbsp;</td>
									</tr>
									<tr>
										<td style="text-align:right">性别：</td>
										<td colspan="2">&nbsp;&nbsp;<input type="radio"
																		   name="gender" value="nan" ${user.gender=='nan'? "checked='checked'":""} /> 男
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input
													type="radio" name="gender" value="nv" ${user.gender=='nv'? "checked='checked'":""}/> 女</td>
									</tr>
									<tr>
										<td style="text-align:right">联系方式：</td>
										<td colspan="2"><input name="telephone" type="text"
															   value="${user.telephone}" class="textinput" />
										</td>
									</tr>

									<tr>
										<td style="text-align:right">&nbsp;</td>
										<td>&nbsp;</td>
										<td>&nbsp;</td>
									</tr>
								</table>
								<p style="text-align:center">
									<input type="image" src="images/botton_gif_025.gif" border="0">
								</p>
								<p style="text-align:center">&nbsp;</p>
							</form></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<jsp:include page="foot.jsp" />
</body>
</html>
